<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/static/admin/css/bootstrap.css">
    <link rel="stylesheet" href="/static/admin/css/home.css">
    <title>尹清正的后台</title>
</head>
<body>
<div class="navbar navbar-default">
    <div class="navbar-header">
        <div class="navbar-brand">yqz后台</div>
        <div class="navbar-right"><label class="label-primary">你好，{$nickname}</label></div>
    </div>
</div>
<div class="col-sm-2">
    <div class="list-group sidebar">
        <a href="index.html" class="list-group-item list-group-item-success" id="btn-index">后台首页</a>
        <a href="" class="list-group-item list-group-item-success" id="btn-reset">修改密码</a>
        <a href="" class="list-group-item list-group-item-success" id="btn-log">登录日志</a>
        <a href="" class="list-group-item list-group-item-success" id="btn-loginout">注销</a>
    </div>
</div>
<div class="col-sm-8">
    <div id="index" class="page">
        <div class="panel panel-success">
            <div class="panel-heading"><big>欢迎来到yqz后台</big>	</div>
            <div class="panel-info"><big>亲爱的用户，欢迎您使用yqz后台<br><br></big>
                <table class="table table-hover table-striped">
                    <thead>
                    <th colspan="2">后台基本信息</th>
                    </thead>
                    <tbody>
                    <tr>
                        <th>服务器域名</th>
                        <th>http://www.test.com/</th>
                    </tr>
                    <tr>
                        <th>服务器IP地址</th>
                        <th>127.0.0.1</th>
                    </tr>
                    <tr>
                        <th>端口号</th>
                        <th>80</th>
                    </tr>
                    <tr>
                        <th>联系邮箱</th>
                        <th>634308664@qq.com</th>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="panel panel-success">
            <div class="panel-heading"><big>用户基本信息</big></div>
            <div class="panel-info">
                <table class="table table-striped table-hover">
                    <tbody>
                    <tr>
                        <th>用户名</th>
                        <th>{$username}</th>
                    </tr>
                    <tr>
                        <th>昵称</th>
                        <th>{$nickname}</th>
                    </tr>
                    <tr>
                        <th>邮箱</th>
                        <th>{$email}</th>
                    </tr>
                    <tr>
                        <th>登录IP</th>
                        <th>{$ip}</th>
                    </tr>
                    <tr>
                        <th>是否超级管理</th>
                        <th>{if ($is_super==1)}是超级管理员
                            {else /}非超级管理员
                            {/if}</th>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div id="log" class="page" style="display: none;">
        <div class="panel panel-success">
            <div class="panel-heading"><big>用户登录日志</big></div>
            <div class="panel-info" id="log-info">

            </div>
        </div>
    </div>
    <div id="reset" class="page" style="display: none;">
        <div class="container reset-container" style="max-width: 500px;margin-top: 30px;">
            <form id="modify-form">
                <div class="form-group">
                    <label>请输入新密码</label>
                    <input type="password" class="form-control" name="password">
                </div>
                <div class="form-group">
                    <label>确认新密码</label>
                    <input type="password" class="form-control" name="confirm">
                </div>
            </form>
            <button class="btn btn-primary btn-block" id="modify-btn">更改密码</button>
        </div>
    </div>
</div>
<div class="col-sm-2"></div>

{include file="/public/js-home"  /}

</body>
</html>